(function (e) {
    var f = /\W/g, c = document, g = document.getElementsByTagName("head")[0] || document.documentElement;
    e.importStyle = function (d, a) {
        if (a && (a = a.replace(f, "-"), c.getElementById(a)))return;
        var b = c.createElement("style");
        a && (b.id = a);
        g.appendChild(b);
        if (b.styleSheet) {
            if (31 < c.getElementsByTagName("style").length)throw Error("Exceed the maximal count of style tags in IE");
            b.styleSheet.cssText = d
        } else b.appendChild(c.createTextNode(d))
    }
})(seajs);
